package com.fht.entity;

import javax.persistence.*;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-03-12 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="purchase_orders_particulars" )
public class PurchaseOrdersParticulars  implements Serializable {

	private static final long serialVersionUID =  504109058800631576L;

	/**
	 * 采购单主表ID
	 */
   	@Column(name = "id" )
	private String id;

	/**
	 * 原料ID
	 */
   	@Column(name = "material_id" )
	private Integer materialId;

	/**
	 * 采购数量
	 */
   	@Column(name = "purchase_num" )
	private Integer purchaseNum;

	/**
	 * 小计
	 */
   	@Column(name = "subtotal" )
	private Integer subtotal;

   	@Transient
	private String subtotalString;

	/**
	 * 备注
	 */
   	@Column(name = "remark" )
	private String remark;

   	@Transient
	private String name;

   	@Transient
	private String nowRepertory;

   	@Transient
	private String repertoryUnit;

   	@Transient
	private String purchaseUnit;

   	@Transient
	private String conversion;

   	@Transient
	private String unitPrice;

   	@Transient
	private String conversionName;

}
